﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DQYT.HTDZ.Model;
using System.Collections;

namespace DQYT.HTDZ.IDAL
{
    public interface IBDRoleMenu
    {
        #region  Method

        /// <summary>
        /// 是否存在该记录
        /// </summary>
        bool Exists(decimal JSD_ID, decimal MNU_ID);


        /// <summary>
        /// 增加一条数据
        /// </summary>
        bool Add(BDRoleMenuModel model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        bool Update(BDRoleMenuModel model);

        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool Delete(decimal JSD_ID, decimal MNU_ID);


        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        BDRoleMenuModel GetModel(decimal JSD_ID, decimal MNU_ID);

        /// <summary>
        /// 获得数据列表
        /// </summary>
        DataSet GetList(string strWhere);

        /// <summary>
        /// 获取记录总数
        /// </summary>
        int GetRecordCount(string strWhere);
        /// <summary>
        /// 分页获取数据列表
        /// </summary>
        DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);

        #endregion  Method

        #region 新添加
        /// <summary>
        /// 获得下一个最大值
        /// </summary>
        /// <returns></returns>
        int GetNextID();

        /// <summary>
        /// 更新表数据
        /// </summary>
        /// <param name="dt">数据</param>
        /// <param name="JSE_ID">角色ID</param>
        /// <returns></returns>
        bool Update(DataTable dt, string JSE_ID);

        /// <summary>
        /// 删除多条数据
        /// </summary>
        bool Delete(int JSE_ID);
        /// <summary>
        /// 执行事务
        /// </summary>
        /// <param name="alSQL"></param>
        /// <returns></returns>
        void ExecuteSqlTran(ArrayList alSQL);
        #endregion
    }
}
